package cn.mashiro.common.proccess;

import cn.mashiro.common.restful.Result;

public class ProcessController {
    public <T> Result<T> renderSuccess() {
        return Result.success();
    }

    public <T> Result<T> renderSuccess(T data) {
        return Result.success(data);
    }

    public <T> Result<T> renderError(Exception exception) {
        return Result.error(exception);
    }
}
